package com.derbysoft.defender.api.requester;

import com.derbysoft.defender.util.AuthorizationUtil;

/**
 * <p>some description here.</p>
 * Created by Afee Lee on 2017-03-22 08:36
 *
 * @author Afee Lee
 * @version 1.0
 * @see Object
 * @since 1.8
 */
public class UserRequester extends AbstractRequester {
    private String accessToken;

    public UserRequester(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public Object listUsers(String url) {
        return getForEntity(url, AuthorizationUtil.bearer(accessToken), String.class);
    }
}
